package com.vates.vsp.practico.alumnos.service.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.vates.vsp.practico.alumnos.business.Alumnos;
import com.vates.vsp.practico.alumnos.service.AlumnosService;
import com.vates.vsp.practico.commons.AbstractBaseService;

@Repository("alumnosService")
public class AlumnosServiceImpl extends AbstractBaseService implements
		AlumnosService {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.vates.vsp.practico.alumnos.service.impl.AlumnosService#getAllAlumnos
	 * ()
	 */
	@Override
	public List<Alumnos> getAllAlumnos() {
		System.out.println("PASO POR SERVICE!");
		List<Alumnos> result = this.getHibernateTemplate().find("FROM Alumnos");
		return result;
	}
}
